﻿using System;
using System.ComponentModel;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using LeadThing.AbpZeroTemplate.SupportingSystems;

namespace LeadThing.AbpZeroTemplate.SupportingSystems.Dtos
{
    /// <summary>
    /// 配套制度列表Dto
    /// </summary>
    [AutoMapFrom(typeof(SupportingSystem))]
    public class SupportingSystemListDto : EntityDto<long>
    {
        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件ID")]
        public int FileID { get; set; }
        /// <summary>
        /// 镇
        /// </summary>
        [DisplayName("镇")]
        public int TownID { get; set; }
        /// <summary>
        /// 区
        /// </summary>
        [DisplayName("区")]
        public int AreaID { get; set; }
        /// <summary>
        /// 村庄
        /// </summary>
        [DisplayName("村庄")]
        public int VillageID { get; set; }
        /// <summary>
        /// 制度名称
        /// </summary>
        [DisplayName("制度名称")]
        public string SystemTitle { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; }

        #region 扩展字段

        /// <summary>
        /// 镇名称
        /// </summary>
        [DisplayName("镇")]
        public string TownTitle { get; set; }

        /// <summary>
        /// 区名称
        /// </summary>
        [DisplayName("区")]
        public string AreaTitle { get; set; }

        /// <summary>
        /// 村名称
        /// </summary>
        [DisplayName("村庄")]
        public string VillageTitle { get; set; }

        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件")]
        public string FileTitle { get; set; }

        #endregion

    }
}
